package cn.lj.logistics.pojo;

/*
 * 消息对象，前端ajax请求以后返回信息对象
 */
public class MsgObject {

	private Integer code;// 0 失败，1成功

	private String msg;// 成功或者失败的提示消息

	public static MsgObject createMO(Integer code, String msg) {

		MsgObject mo = new MsgObject();
		mo.setCode(code);
		mo.setMsg(msg);
		return mo;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return "MsgObject [code=" + code + ", msg=" + msg + "]";
	}

}
